package com.bingo.cf.certification;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
@MapperScan({"com.bingo.cf.certification.*.*.dao*"})
@ServletComponentScan
@ComponentScan(basePackages= {"com.bingo.cf.certification.*","com.tip.restful.*"})
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
public class AppRuner extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(AppRuner.class);
    }

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(AppRuner.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run(args);
    }
    
}

